package cn.com.yusys.yusp.admin.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import cn.com.yusys.yusp.commons.dto.def.ContrBean;
import cn.com.yusys.yusp.commons.dto.def.DataContrDTO;
import cn.com.yusys.yusp.commons.dto.def.MenuContrDTO;
import cn.com.yusys.yusp.commons.dto.def.UserInfoDTO;

@Component
public class UserProviderServiceHystrix implements  UserProviderService {
    
    private static final Logger logger = LoggerFactory.getLogger(UserProviderServiceHystrix.class);
	@Override
	public List<ContrBean> getAllContrUrl() {
	    logger.warn("Failed to call interface, tiggering fuse");
		return null;
	}

	@Override
	public UserInfoDTO getUserInfo(String loginCode, String sysId) {
	    logger.warn("Failed to call interface, tiggering fuse");
		return null;
	}

	@Override
	public MenuContrDTO getMenuandContr(String loginCode, String sysId) {
		logger.warn("Failed to call interface, tiggering fuse");
		return null;
	}

	@Override
	public List<DataContrDTO> getDataAuth(String loginCode, String sysId) {
		logger.warn("Failed to call interface, tiggering fuse");
		return null;
	}

	@Override
	public void cleanAllContrUrlCache() {
		logger.warn("Failed to call interface, tiggering fuse");
		
	}

	@Override
	public void cleanUserInfoCache() {
		logger.warn("Failed to call interface, tiggering fuse");
		
	}

	@Override
	public void cleanMenuAndContrCache() {
		logger.warn("Failed to call interface, tiggering fuse");
		
	}

	@Override
	public void cleanDataContrCache() {
		logger.warn("Failed to call interface, tiggering fuse");
		
	}

	@Override
	public String getUserCode() {
		logger.warn("Failed to call interface, tiggering fuse");
		return null;
	}

    /**
     * 
     *
     * @param orgId
     * @return 
     * @see cn.com.yusys.yusp.admin.service.UserProviderService#queryUserByOrgId(java.lang.String)
     */
    
    @Override
    public List<String> queryUserByOrgId(String orgId) {
        logger.warn("Failed to call interface, tiggering fuse");
        return null;
    }

    /**
     * 
     *
     * @param orgIds
     * @return 
     * @see cn.com.yusys.yusp.admin.service.UserProviderService#queryUserByOrgIds(java.util.List)
     */
    
    @Override
    public List<String> queryUserByOrgIds(List<String> orgIds) {
        logger.warn("Failed to call interface, tiggering fuse");
        return null;
    }

    /**
     * 
     *
     * @param roleId
     * @return 
     * @see cn.com.yusys.yusp.admin.service.UserProviderService#queryUserByRoleId(java.lang.String)
     */
    
    @Override
    public List<String> queryUserByRoleId(String roleId) {
        logger.warn("Failed to call interface, tiggering fuse");
        return null;
    }

    /**
     * 
     *
     * @param dutyId
     * @return 
     * @see cn.com.yusys.yusp.admin.service.UserProviderService#queryUserByDutyId(java.lang.String)
     */
    
    @Override
    public List<String> queryUserByDutyId(String dutyId) {
        logger.warn("Failed to call interface, tiggering fuse");
        return null;
    }

    /**
     * 
     *
     * @param userId
     * @return 
     * @see cn.com.yusys.yusp.admin.service.UserProviderService#queryOrgsByUserId(java.lang.String)
     */
    
    @Override
    public List<String> queryOrgsByUserId(String userId) {
        logger.warn("Failed to call interface, tiggering fuse");
        return null;
    }

    /**
     * 
     *
     * @param upOrgId
     * @return 
     * @see cn.com.yusys.yusp.admin.service.UserProviderService#queryOrgsByUpOrgId(java.lang.String)
     */
    
    @Override
    public List<String> queryOrgsByUpOrgId(String upOrgId) {
        logger.warn("Failed to call interface, tiggering fuse");
        return null;
    }

    /**
     * 
     *
     * @param orgId
     * @return 
     * @see cn.com.yusys.yusp.admin.service.UserProviderService#queryUpOrgByOrgId(java.lang.String)
     */
    
    @Override
    public List<String> queryUpOrgByOrgId(String orgId) {
        logger.warn("Failed to call interface, tiggering fuse");
        return null;
    }

    /**
     * 
     *
     * @param userId
     * @return 
     * @see cn.com.yusys.yusp.admin.service.UserProviderService#queryUserInfoByUserId(java.lang.String)
     */
    
    @Override
    public Map<String, Object> queryUserInfoByUserId(String userId) {
        logger.warn("Failed to call interface, tiggering fuse");
        return null;
    }

}
